<?php require_once($_SERVER["DOCUMENT_ROOT"] . "/../sys/libs/init.lib"); ?>
<html>
<head>
	<title><?php print SITE_TITLE; ?> - Powered By PHP OnIn</title>

	<link type="text/css" rel="stylesheet" href="<?php print SITE_WWW . "css/screen.css"; ?>" >
	
	<script type="text/javascript" src="<?php print SITE_WWW . "js/core.js"; ?>"></script>
	<script type="text/javascript" src="<?php print SITE_WWW . "js/general.js"; ?>"></script>
	<script type="text/javascript" src="<?php print SITE_WWW . "js/general.php"; ?>"></script>	
	<script type="text/javascript" src="<?php print SITE_WWW . "js/CalendarPopup.js"; ?>"></script>
	

	<link rel="stylesheet" type="text/css" href="./js/yui/build/container/assets/skins/sam/container.css"> 
	<script type="text/javascript" src="./js/yui/build/yahoo-dom-event/yahoo-dom-event.js"></script> 
	<script type="text/javascript" src="./js/yui/build/animation/animation-min.js"></script> 
	<script type="text/javascript" src="./js/yui/build/dragdrop/dragdrop-min.js"></script> 
	<script type="text/javascript" src="./js/yui/build/container/container-min.js"></script> 
</head>
<body  class=" yui-skin-sam">
<div class="adminheaderbar">
	<h1><?php print SITE_TITLE; ?></h1>
	<a href="admin.php"><?php if(THIS_PAGE == "home") { print "<strong>Home</strong>"; } else { print "Home"; } ?> </a>
	<a href="admin_clients.php?do=index"><?php if(THIS_PAGE == "clients") { print "<strong>Clients</strong>"; } else { print "Clients"; } ?> </a>
	<a href="admin_products.php?do=index"><?php if(THIS_PAGE == "products") { print "<strong>Products</strong>"; } else { print "Products"; } ?> </a>
	<a href="admin_invoices.php?do=index"><?php if(THIS_PAGE == "invoices") { print "<strong>Invoices</strong>"; } else { print "Invoices"; } ?> </a>
	<a href="admin_users.php?do=index"><?php if(THIS_PAGE == "users") { print "<strong>Users</strong>"; } else { print "Users"; } ?> </a>
</div>
<?php

switch(THIS_PAGE) {
	case "home":
	print "blah blah";
	break;

	case "clients":
	include_once("admin_clientmenu.php");
	break;

	case "products":
	include_once("admin_productsmenu.php");
	break;

	case "invoices":
	include_once("admin_invoicesmenu.php");
	break;

	case "users":
	include_once("admin_usersmenu.php");
	break;
}
?>

<?php if (isset($_REQUEST["showConfirm"])) {
/*
	$js[] = "confirmMessage('$_REQUEST["showConfirm"]');";
*/
}
?>
<p>
<div class="msgWrapper" align="center">
	<div class="confirmmsg" id="confirmmsg" style="display: none;">
	</div>
</div>
</p>
